// JavaScript Document
<!--
function mfredirect(f) {
	try {
		var b = false;
		if (arguments[1]) {
			var e = window.location.host;
			var a = window.location.href;
			var pc_url=arguments[1];
			if (mf_ispcdomain(pc_url, e)) {
				b = true;
			} else {
				b = false;
			}
		} else {
			b = true;
		}
		if (b) {
			//这里放转向链接处理
			if (f) {
				if ((navigator.userAgent.match(/(iPhone|iPod|Android|ios|iPad)/i))) {
					//location.replace(f);
					location.href=f;
				}
			}
		}
		/*
		if (f) {
			if ((navigator.userAgent.match(/(iPhone|iPod|Android|ios|iPad)/i))) {
				//location.replace(f);
				location.href=f;
			}
		}
		*/
	} catch(d) {}
}

function mf_ispcdomain(web_domain,domain_host)
{
	var the_domain=domain_host;
	var g = /^www\./;
	if (g.test(domain_host)) {
		the_domain = domain_host.substr(4)
	}
	
	var e=web_domain.indexOf(the_domain);
	if (e > 0) {
		return true;
	} else {
		return false;
	}
}

//-->